package com.itheima.date8;

import java.time.LocalDateTime;

/*
修饰指定的时间
 */
public class Demo07 {


    public static void main(String[] args) {
        LocalDateTime now = LocalDateTime.now();
        LocalDateTime dateTime = now.withYear(2020);
        System.out.println(now);
        System.out.println(dateTime);
       // System.out.println(now.withMonth(13));
      //  System.out.println(now.withDayOfMonth(32));
        System.out.println(dateTime.withDayOfYear(366));


    }
}
